KeyframeValue

sealed class KeyframeValue

The value of one keyframe. Its kind must match the kind of the animated property. Experimental: this API may change in a minor release.

Inheritors

Types

Link copied to clipboard
data class Color(val value: Color) : KeyframeValue

A color value.

Link copied to clipboard
data class Discrete(val value: DiscreteValue) : KeyframeValue

A value that does not interpolate.

Link copied to clipboard
data class Float(val value: Float) : KeyframeValue

A float value.

Link copied to clipboard
data class List(val values: List<Float>) : KeyframeValue

A flat list of floats, for example gradient stops or a dash array.

Link copied to clipboard
data class Path(val vertices: List<PathVertex>, val closed: Boolean) : KeyframeValue

A bezier path value, for example a morphing vector path.

Link copied to clipboard
data class Vec2(val value: Vector2) : KeyframeValue

A two-dimensional vector value, for example a position.